﻿@{
    ViewBag.Title = "Report";
}
<script type="text/javascript">
    $(function () {
        $("#downloadFile").click(function (e) {
            e.preventDefault();
            window.location = '@Url.Action("ShowExcelReport", "Report")'
        });
    });    
</script>
<div>
    <fieldset class="fields">
        @using (Html.BeginForm("ShowReport", "Report"))
        {
            <br />
            <span>Report:</span> 
            <select name="reportType" id="reportType">
                <option>-</option>
                <option value="GOCAttributes">GOC Attributes</option>
            </select>
            <br />
            <br />
            <button type="submit" value="ShorViewReport">
                Show Report</button>
            <button type="button" value="DownloadFile" id="downloadFile">
                Download Report</button>
        }
    </fieldset>
</div>
